<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title>controller</title>
</head>
</head>
<body>
<?php
require 'Home/ViewModel.php';
class Controller{
	protected $view;
	function __construct(){
		$c=empty($_GET['c'])?"index":$_GET['c'];
		$m=empty($_GET['m'])?"index":$_GET['m'];
		$this->view = new ViewModel($c.'/'.$m);
	}
	function assign($variable,$value){
		$this->view->assign($variable,$value);
	}
	function display(){
		$this->view->display();
	}
}
?>
</body>
</html>